#include "event_worker.h"

void network::event_worker::run()
{
	while(1) {
		boost::shared_ptr<network::event> tmp(_queue->get());
		if(is_interrupted()) {
			return;
		}
		tmp->handler->handle_event(tmp);
	}
}

